<?php

require_once("../global.inc.php");

class SysPowerManage extends SystemFrameWork{
    public $custom;

    public $customer;
    
    public function main()
    {
        if (is_object($custom) === FALSE)
        {
            require_once('custom.class.php');
            $this->custom = new CustomClass();
        }
        
        if (is_object($customer) === FALSE)
        {
            require_once('customer.class.php');
            $this->customer = new CustomerClass();
        }
        
        switch ($action)
        {
            case 'list_custom':
                $this->list_custom();
                break;
            case 'add_custom' :
                $this->add_custom();
                break;
            case 'list_customer' :
                $this->list_customer();
                break;
            case 'add_customer' :
                $this->add_customer();
                break;
            default:
        }
    }
    
    public function list_custom()
    {
        $this->showpage('custom.list');
    }
    
    public function add_custom()
    {
        $this->showpage('custom.add');
    }
    
    public function list_customer()
    {
        $this->showpage('customer.list');
    }
    
    public function add_customer()
    {
        $this->showpage('customer.add');
    }
}

?>